package com.coderxq.blog.web.entity.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * @Author: lijingming
 * @Date: 2025/2/15
 * @Description:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role {
    @Id
    @NotEmpty(message = "角色ID不能为空")
    private String roleId;

    @NotEmpty(message = "角色名称不能为空")
    private String roleName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private int isDelete;
}
